//===============================================================================
// Microsoft Architecture Strategy Team
// LitwareHR - SaaS Sample Application
//===============================================================================
// Copyright  Microsoft Corporation.  All rights reserved.
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
// FITNESS FOR A PARTICULAR PURPOSE.
//===============================================================================
// The example companies, organizations, products, domain names,
// e-mail addresses, logos, people, places, and events depicted
// herein are fictitious.  No association with any real company,
// organization, product, domain name, email address, logo, person,
// places, or events is intended or should be inferred.
//===============================================================================


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using ConfigurationWizard.Properties;

namespace ConfigurationWizard.Controls
{
    public partial class TaskViewControl : UserControl
    {
        public TaskViewControl(string taskName)
        {
            InitializeComponent();
            this.lblTitle.Text = taskName;
            this.statusPictureBox.Image = Resources.bullet;
        }

        public void SetCompleted()
        {
            this.statusPictureBox.Image = Resources.tick;
            this.lblTitle.ForeColor = Color.FromArgb(117, 117, 117);

            Font font = new Font((Font)this.lblTitle.Font.Clone(), FontStyle.Regular);
            this.lblTitle.Font = font;
        }

        public void SetActive()
        {
            this.statusPictureBox.Image = Resources.arrow;
            this.lblTitle.ForeColor = Color.Black;
            
            Font font = new Font((Font)this.lblTitle.Font.Clone(), FontStyle.Bold);
            this.lblTitle.Font = font;
        }

        public void SetFailed()
        {
            this.statusPictureBox.Image = Resources.failed;
            this.lblTitle.ForeColor = Color.Black;

            Font font = new Font((Font)this.lblTitle.Font.Clone(), FontStyle.Regular);
            this.lblTitle.Font = font;
        }
    }
}
